/*     */ package com.engine;
/*     */ 
/*     */ import java.io.FileNotFoundException;
/*     */ import java.io.IOException;
/*     */ import java.text.DecimalFormat;
/*     */ import java.util.HashMap;
/*     */ import org.apache.log4j.Category;
/*     */ 
/*     */ public class DisplayTools
/*     */ {
/*  11 */   static final Category log = Category.getInstance(DisplayTools.class);
/*  12 */   private boolean isSendToKeyPad = false;
/*  13 */   private boolean isSendToPanel = false;
/*  14 */   private boolean isSendToPrinter = false;
/*  15 */   private boolean isPlayVoice = false;
/*  16 */   private boolean isSendToLCD = false;
/*  17 */   private boolean isSendToTicket = false;
/*     */ 
/*  19 */   private int counter_keypad = 0;
/*  20 */   private int counter_panel = 0;
/*  21 */   private int counter_printer = 0;
/*  22 */   private int counter_lcd = 0;
/*     */ 
/*  24 */   private int[] arrkeypad = new int[20];
/*  25 */   private int[] arrpanel = new int[20];
/*  26 */   private int[] arrprinter = new int[20];
/*     */ 
/*  28 */   private int[] arrServiceCounter = new int[20];
/*  29 */   private int[] arrServiceDisplay = new int[20];
/*  30 */   private String[] arrKeyData = new String[20];
/*  31 */   private String[] arrAntrianKode = new String[20];
/*     */   private HashMap<Integer, Integer> mapKeyPad;
/*     */   private HashMap<Integer, Integer> mapPrinter;
/*     */   private String keypad_request;
/*     */   private String printer_request;
/*     */   private String panel_request;
/*     */   private String keypad_response_up;
/*     */   private String keypad_response_no;
/*     */   private String keypad_command;
/*     */   private String panel_command;
/*     */   private String pref_keypad;
/*     */   private String pref_printer;
/*     */   private String formatCounter;
/*     */   private String printerCommand;
/*     */   private int sleep;
/*     */   private int repeat;
/*     */   private int repeat_sleep;
/*     */   private String[] arrKeyPanel;
/*     */   private String format;
/*     */ 
/*     */   public DisplayTools()
/*     */   {
/*  54 */     this.mapKeyPad = new HashMap();
/*  55 */     this.mapPrinter = new HashMap();
/*  56 */     this.isSendToKeyPad = true;
/*  57 */     this.isSendToPanel = true;
/*  58 */     this.isSendToPrinter = true;
/*  59 */     setSendToTicket(true);
/*  60 */     readConfig();
/*     */   }
/*     */ 
/*     */   public String getFormat()
/*     */   {
/*  65 */     return this.format;
/*     */   }
/*     */ 
/*     */   private void readConfig() {
/*     */     try {
/*  70 */       ReadConfig.getInstance(null);
/*     */     }
/*     */     catch (FileNotFoundException localFileNotFoundException) {
/*     */     }
/*     */     catch (IOException localIOException) {
/*     */     }
/*  76 */     this.isSendToKeyPad = (ReadConfig.GET("SEND_TO_KEYPAD").equals("1"));
/*  77 */     this.isSendToPanel = (ReadConfig.GET("SEND_TO_DISPLAY").equals("1"));
/*  78 */     this.isSendToPrinter = (ReadConfig.GET("SEND_TO_PRINTER").equals("1"));
/*  79 */     this.isPlayVoice = (ReadConfig.GET("PLAY_VOICE").equals("1"));
/*  80 */     setSendToLCD(ReadConfig.GET("SEND_TO_LCD").equals("1"));
/*  81 */     setSendToTicket(ReadConfig.GET("SEND_TO_TICKET").equals("1"));
/*     */ 
/*  83 */     setCounter_keypad(Integer.parseInt(ReadConfig.GET("COUNTER")));
/*  84 */     setCounter_panel(Integer.parseInt(ReadConfig.GET("DISPLAY_COUNTER")));
/*  85 */     setCounter_printer(Integer.parseInt(ReadConfig.GET("PRINTER_COUNTER")));
/*  86 */     setCounter_lcd(Integer.parseInt(ReadConfig.GET("LCD_COUNTER")));
/*  87 */     setPrinterCommand(ReadConfig.GET("PRINTERCOMMAND"));
/*     */ 
/*  89 */     String antrianKode = ReadConfig.GET("SERVICE_CODE");
/*  90 */     this.format = ReadConfig.GET("FORMAT");
/*  91 */     for (int i = 0; i < this.arrAntrianKode.length; i++)
/*     */     {
/*  93 */       this.arrAntrianKode[i] = "";
/*     */     }
/*     */ 
/*  96 */     if ((antrianKode != null) && (!antrianKode.equals("")))
/*     */     {
/*  98 */       String[] arr = antrianKode.split("\\|");
/*  99 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 101 */         this.arrAntrianKode[i] = arr[i];
/*     */       }
/*     */ 
/*     */     }
/*     */ 
/* 106 */     String[] arrKeyPad = ReadConfig.GET("DATA_KEYPAD").split("\\|");
/* 107 */     this.arrKeyPanel = ReadConfig.GET("DATA_PANEL").split("\\|");
/*     */ 
/* 109 */     for (int i = 0; i < getCounter_keypad(); i++)
/*     */     {
/* 111 */       int idx = i + 1;
/* 112 */       this.arrkeypad[i] = Integer.parseInt(ReadConfig.GET("COUNTER_" + idx));
/* 113 */       this.arrKeyData[i] = arrKeyPad[i];
/* 114 */       String key = ReadConfig.GET("D_" + idx);
/* 115 */       this.mapKeyPad.put(Integer.valueOf(Integer.parseInt(key)), Integer.valueOf(this.arrkeypad[i]));
/*     */     }
/*     */ 
/* 118 */     for (int i = 0; i < getCounter_panel(); i++)
/*     */     {
/* 120 */       int idx = i + 1;
/* 121 */       this.arrpanel[i] = Integer.parseInt(ReadConfig.GET("DISPLAY_" + idx));
/*     */     }
/*     */ 
/* 124 */     for (int i = 0; i < getCounter_printer(); i++)
/*     */     {
/* 126 */       int idx = i + 1;
/* 127 */       this.arrprinter[i] = Integer.parseInt(ReadConfig.GET("PRINTER_" + idx));
/* 128 */       String key = ReadConfig.GET("P_" + idx);
/* 129 */       this.mapPrinter.put(Integer.valueOf(Integer.parseInt(key)), Integer.valueOf(this.arrprinter[i]));
/*     */     }
/*     */ 
/* 132 */     setKeypad_request(ReadConfig.GET("CMD_KEYPAD"));
/* 133 */     setPanel_request(ReadConfig.GET("CMD_PANEL_REQUEST"));
/* 134 */     setPrinter_request(ReadConfig.GET("CMD_PRINTER"));
/*     */ 
/* 136 */     setKeypad_response_no(ReadConfig.GET("CMD_RESPONSE_NO"));
/* 137 */     setKeypad_response_up(ReadConfig.GET("CMD_RESPONSE_UP"));
/*     */ 
/* 139 */     setKeypad_command(ReadConfig.GET("CMD_UPDATE"));
/* 140 */     setPanel_command(ReadConfig.GET("CMD_PANEL"));
/*     */ 
/* 142 */     Increment.LastNo = Integer.parseInt(ReadConfig.GET("INC_1"));
/* 143 */     Increment2.LastNo = Integer.parseInt(ReadConfig.GET("INC_2"));
/* 144 */     Increment3.LastNo = Integer.parseInt(ReadConfig.GET("INC_3"));
/* 145 */     Increment4.LastNo = Integer.parseInt(ReadConfig.GET("INC_4"));
/* 146 */     Increment5.LastNo = Integer.parseInt(ReadConfig.GET("INC_5"));
/* 147 */     Increment6.LastNo = Integer.parseInt(ReadConfig.GET("INC_6"));
/* 148 */     Increment7.LastNo = Integer.parseInt(ReadConfig.GET("INC_7"));
/* 149 */     Increment8.LastNo = Integer.parseInt(ReadConfig.GET("INC_8"));
/* 150 */     Increment9.LastNo = Integer.parseInt(ReadConfig.GET("INC_9"));
/* 151 */     Increment10.LastNo = Integer.parseInt(ReadConfig.GET("INC_10"));
/*     */ 
/* 153 */     this.repeat = 1;
/* 154 */     this.repeat_sleep = 0;
/*     */     try
/*     */     {
/* 157 */       this.repeat = Integer.parseInt(ReadConfig.GET("REPEAT"));
/* 158 */       this.repeat_sleep = Integer.parseInt(ReadConfig.GET("REPEAT_SLEEP"));
/*     */     }
/*     */     catch (Exception localException)
/*     */     {
/*     */     }
/*     */ 
/* 165 */     setSleep(Integer.parseInt(ReadConfig.GET("SLEEP")));
/*     */ 
/* 167 */     setPref_keypad(ReadConfig.GET("PREFIX_KEYPAD"));
/* 168 */     setPref_printer(ReadConfig.GET("PREFIX_PRINTER"));
/* 169 */     setFormatCounter(ReadConfig.GET("FORMAT"));
/*     */ 
/* 171 */     String service_to_counter = ReadConfig.GET("SERVICE_COUNTER_1");
/* 172 */     String[] arr = service_to_counter.split("\\|");
/* 173 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 175 */       int idx = Integer.parseInt(arr[i]);
/* 176 */       this.arrServiceCounter[(idx - 1)] = 1;
/*     */     }
/*     */ 
/* 179 */     service_to_counter = ReadConfig.GET("SERVICE_COUNTER_2");
/* 180 */     arr = service_to_counter.split("\\|");
/* 181 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 183 */       int idx = Integer.parseInt(arr[i]);
/* 184 */       this.arrServiceCounter[(idx - 1)] = 2;
/*     */     }
/*     */ 
/* 187 */     service_to_counter = ReadConfig.GET("SERVICE_COUNTER_3");
/* 188 */     arr = service_to_counter.split("\\|");
/* 189 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 191 */       int idx = Integer.parseInt(arr[i]);
/* 192 */       this.arrServiceCounter[(idx - 1)] = 3;
/*     */     }
/*     */ 
/* 195 */     service_to_counter = ReadConfig.GET("SERVICE_COUNTER_4");
/* 196 */     arr = service_to_counter.split("\\|");
/* 197 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 199 */       int idx = Integer.parseInt(arr[i]);
/* 200 */       this.arrServiceCounter[(idx - 1)] = 4;
/*     */     }
/*     */ 
/* 203 */     service_to_counter = ReadConfig.GET("SERVICE_COUNTER_5");
/* 204 */     arr = service_to_counter.split("\\|");
/* 205 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 207 */       int idx = Integer.parseInt(arr[i]);
/* 208 */       this.arrServiceCounter[(idx - 1)] = 5;
/*     */     }
/*     */ 
/* 211 */     service_to_counter = ReadConfig.GET("SERVICE_COUNTER_6");
/* 212 */     arr = service_to_counter.split("\\|");
/* 213 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 215 */       int idx = Integer.parseInt(arr[i]);
/* 216 */       this.arrServiceCounter[(idx - 1)] = 6;
/*     */     }
/*     */ 
/* 219 */     service_to_counter = ReadConfig.GET("SERVICE_COUNTER_7");
/* 220 */     arr = service_to_counter.split("\\|");
/* 221 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 223 */       int idx = Integer.parseInt(arr[i]);
/* 224 */       this.arrServiceCounter[(idx - 1)] = 7;
/*     */     }
/*     */ 
/* 227 */     service_to_counter = ReadConfig.GET("SERVICE_COUNTER_8");
/* 228 */     arr = service_to_counter.split("\\|");
/* 229 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 231 */       int idx = Integer.parseInt(arr[i]);
/* 232 */       this.arrServiceCounter[(idx - 1)] = 8;
/*     */     }
/* 234 */     service_to_counter = ReadConfig.GET("SERVICE_COUNTER_9");
/* 235 */     arr = service_to_counter.split("\\|");
/* 236 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 238 */       int idx = Integer.parseInt(arr[i]);
/* 239 */       this.arrServiceCounter[(idx - 1)] = 9;
/*     */     }
/* 241 */     service_to_counter = ReadConfig.GET("SERVICE_COUNTER_10");
/* 242 */     arr = service_to_counter.split("\\|");
/* 243 */     for (int i = 0; i < arr.length; i++)
/*     */     {
/* 245 */       int idx = Integer.parseInt(arr[i]);
/* 246 */       this.arrServiceCounter[(idx - 1)] = 10;
/*     */     }
/*     */ 
/* 249 */     String service_to_display = ReadConfig.GET("SERVICE_DISPLAY_1");
/* 250 */     log.info("service#1:" + service_to_display);
/* 251 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 253 */       arr = service_to_display.split("\\|");
/* 254 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 256 */         int idx = Integer.parseInt(arr[i]);
/* 257 */         this.arrServiceDisplay[(idx - 1)] = 1;
/*     */       }
/*     */     }
/*     */ 
/* 261 */     service_to_display = ReadConfig.GET("SERVICE_DISPLAY_2");
/* 262 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 264 */       arr = service_to_display.split("\\|");
/* 265 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 267 */         int idx = Integer.parseInt(arr[i]);
/* 268 */         this.arrServiceDisplay[(idx - 1)] = 2;
/*     */       }
/*     */     }
/*     */ 
/* 272 */     service_to_display = ReadConfig.GET("SERVICE_DISPLAY_3");
/* 273 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 275 */       arr = service_to_display.split("\\|");
/* 276 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 278 */         int idx = Integer.parseInt(arr[i]);
/* 279 */         this.arrServiceDisplay[(idx - 1)] = 3;
/*     */       }
/*     */     }
/*     */ 
/* 283 */     service_to_display = ReadConfig.GET("SERVICE_DISPLAY_4");
/* 284 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 286 */       arr = service_to_display.split("\\|");
/* 287 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 289 */         int idx = Integer.parseInt(arr[i]);
/* 290 */         this.arrServiceDisplay[(idx - 1)] = 4;
/*     */       }
/*     */     }
/*     */ 
/* 294 */     service_to_display = ReadConfig.GET("SERVICE_DISPLAY_5");
/* 295 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 297 */       arr = service_to_display.split("\\|");
/* 298 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 300 */         int idx = Integer.parseInt(arr[i]);
/* 301 */         this.arrServiceDisplay[(idx - 1)] = 5;
/*     */       }
/*     */     }
/* 304 */     service_to_display = ReadConfig.GET("SERVICE_DISPLAY_6");
/* 305 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 307 */       arr = service_to_display.split("\\|");
/* 308 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 310 */         int idx = Integer.parseInt(arr[i]);
/* 311 */         this.arrServiceDisplay[(idx - 1)] = 6;
/*     */       }
/*     */     }
/* 314 */     service_to_display = ReadConfig.GET("SERVICE_DISPLAY_7");
/* 315 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 317 */       arr = service_to_display.split("\\|");
/* 318 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 320 */         int idx = Integer.parseInt(arr[i]);
/* 321 */         this.arrServiceDisplay[(idx - 1)] = 7;
/*     */       }
/*     */     }
/* 324 */     service_to_display = ReadConfig.GET("SERVICE_DISPLAY_8");
/* 325 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 327 */       arr = service_to_display.split("\\|");
/* 328 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 330 */         int idx = Integer.parseInt(arr[i]);
/* 331 */         this.arrServiceDisplay[(idx - 1)] = 8;
/*     */       }
/*     */     }
/* 334 */     service_to_display = ReadConfig.GET("SERVICE_DISPLAY_9");
/* 335 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 337 */       arr = service_to_display.split("\\|");
/* 338 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 340 */         int idx = Integer.parseInt(arr[i]);
/* 341 */         this.arrServiceDisplay[(idx - 1)] = 9;
/*     */       }
/*     */     }
/* 344 */     service_to_display = ReadConfig.GET("SERVICE_DISPLAY_10");
/* 345 */     if (!service_to_display.trim().equals(""))
/*     */     {
/* 347 */       arr = service_to_display.split("\\|");
/* 348 */       for (int i = 0; i < arr.length; i++)
/*     */       {
/* 350 */         int idx = Integer.parseInt(arr[i]);
/* 351 */         this.arrServiceDisplay[(idx - 1)] = 10;
/*     */       }
/*     */     }
/*     */   }
/*     */ 
/*     */   public String getKeyData(int keyIdx)
/*     */   {
/* 358 */     return this.arrKeyData[keyIdx];
/*     */   }
/*     */ 
/*     */   public int getIndexPort(int key, boolean isKeyPad) {
/* 362 */     if (isKeyPad)
/*     */     {
/* 364 */       if (this.mapKeyPad.containsKey(Integer.valueOf(key))) {
/* 365 */         return ((Integer)this.mapKeyPad.get(Integer.valueOf(key))).intValue();
/*     */       }
/* 367 */       return 0;
/*     */     }
/*     */ 
/* 371 */     if (this.mapPrinter.containsKey(Integer.valueOf(key))) {
/* 372 */       return ((Integer)this.mapPrinter.get(Integer.valueOf(key))).intValue();
/*     */     }
/* 374 */     return 0;
/*     */   }
/*     */ 
/*     */   public int getRepeatValue()
/*     */   {
/* 381 */     return this.repeat;
/*     */   }
/*     */ 
/*     */   public int getRepeatInterval()
/*     */   {
/* 386 */     return this.repeat_sleep;
/*     */   }
/*     */ 
/*     */   public int getPrinterItem(int i) {
/* 390 */     return this.arrprinter[i];
/*     */   }
/*     */ 
/*     */   public int getKeypadItem(int i)
/*     */   {
/* 395 */     return this.arrkeypad[i];
/*     */   }
/*     */ 
/*     */   public int getPanelItem(int i)
/*     */   {
/* 400 */     return this.arrpanel[i];
/*     */   }
/*     */ 
/*     */   public int getServiceCounterItem(int i)
/*     */   {
/* 405 */     log.info("idx:" + i + ";service: " + this.arrServiceCounter[(i - 1)]);
/* 406 */     return this.arrServiceCounter[(i - 1)];
/*     */   }
/*     */ 
/*     */   public int getServiceDisplayItem(int i)
/*     */   {
/* 411 */     log.info("idx:" + i + ";service: " + this.arrServiceDisplay[(i - 1)]);
/* 412 */     return this.arrServiceDisplay[(i - 1)];
/*     */   }
/*     */ 
/*     */   public String replace(String source, String repacefrom, String with)
/*     */   {
/* 417 */     return source.replace(repacefrom, with);
/*     */   }
/*     */ 
/*     */   public void setSendToKeyPad(boolean isSendToKeyPad) {
/* 421 */     this.isSendToKeyPad = isSendToKeyPad;
/*     */   }
/*     */   public boolean isSendToKeyPad() {
/* 424 */     return this.isSendToKeyPad;
/*     */   }
/*     */   public void setSendToPanel(boolean isSendToPanel) {
/* 427 */     this.isSendToPanel = isSendToPanel;
/*     */   }
/*     */   public boolean isSendToPanel() {
/* 430 */     return this.isSendToPanel;
/*     */   }
/*     */   public void setSendToPrinter(boolean isSendToPrinter) {
/* 433 */     this.isSendToPrinter = isSendToPrinter;
/*     */   }
/*     */   public boolean isSendToPrinter() {
/* 436 */     return this.isSendToPrinter;
/*     */   }
/*     */ 
/*     */   public void setCounter_keypad(int counter_keypad) {
/* 440 */     this.counter_keypad = counter_keypad;
/*     */   }
/*     */ 
/*     */   public int getCounter_keypad() {
/* 444 */     return this.counter_keypad;
/*     */   }
/*     */ 
/*     */   public void setCounter_panel(int counter_panel) {
/* 448 */     this.counter_panel = counter_panel;
/*     */   }
/*     */ 
/*     */   public int getCounter_panel() {
/* 452 */     return this.counter_panel;
/*     */   }
/*     */ 
/*     */   public void setKeypad_request(String keypad_request) {
/* 456 */     this.keypad_request = keypad_request;
/*     */   }
/*     */ 
/*     */   public String getKeypad_request() {
/* 460 */     return this.keypad_request;
/*     */   }
/*     */ 
/*     */   public void setPrinter_request(String printer_request) {
/* 464 */     this.printer_request = printer_request;
/*     */   }
/*     */ 
/*     */   public String getPrinter_request() {
/* 468 */     return this.printer_request;
/*     */   }
/*     */ 
/*     */   public void setKeypad_response_up(String keypad_response_up) {
/* 472 */     this.keypad_response_up = keypad_response_up;
/*     */   }
/*     */ 
/*     */   public String getKeypad_response_up() {
/* 476 */     return this.keypad_response_up;
/*     */   }
/*     */ 
/*     */   public void setKeypad_response_no(String keypad_response_no) {
/* 480 */     this.keypad_response_no = keypad_response_no;
/*     */   }
/*     */ 
/*     */   public String getKeypad_response_no() {
/* 484 */     return this.keypad_response_no;
/*     */   }
/*     */ 
/*     */   public void setKeypad_command(String keypad_command) {
/* 488 */     this.keypad_command = keypad_command;
/*     */   }
/*     */ 
/*     */   public String getKeypad_command() {
/* 492 */     return this.keypad_command;
/*     */   }
/*     */ 
/*     */   public void setPanel_command(String panel_command) {
/* 496 */     this.panel_command = panel_command;
/*     */   }
/*     */ 
/*     */   public String getPanel_command() {
/* 500 */     return this.panel_command;
/*     */   }
/*     */ 
/*     */   public void setCounter_printer(int counter_printer) {
/* 504 */     this.counter_printer = counter_printer;
/*     */   }
/*     */ 
/*     */   public int getCounter_printer() {
/* 508 */     return this.counter_printer;
/*     */   }
/*     */ 
/*     */   public void setSleep(int sleep) {
/* 512 */     this.sleep = sleep;
/*     */   }
/*     */ 
/*     */   public int getSleep() {
/* 516 */     return this.sleep;
/*     */   }
/*     */ 
/*     */   public void setPref_keypad(String pref_keypad) {
/* 520 */     this.pref_keypad = pref_keypad;
/*     */   }
/*     */ 
/*     */   public String getPref_keypad() {
/* 524 */     return this.pref_keypad;
/*     */   }
/*     */ 
/*     */   public void setPref_printer(String pref_printer) {
/* 528 */     this.pref_printer = pref_printer;
/*     */   }
/*     */ 
/*     */   public String getPref_printer() {
/* 532 */     return this.pref_printer;
/*     */   }
/*     */ 
/*     */   public void setFormatCounter(String formatCounter) {
/* 536 */     this.formatCounter = formatCounter;
/*     */   }
/*     */ 
/*     */   public String getFormatCounter() {
/* 540 */     return this.formatCounter;
/*     */   }
/*     */ 
/*     */   public void setPlayVoice(boolean isPlayVoice) {
/* 544 */     this.isPlayVoice = isPlayVoice;
/*     */   }
/*     */ 
/*     */   public boolean isPlayVoice() {
/* 548 */     return this.isPlayVoice;
/*     */   }
/*     */ 
/*     */   public void setSendToLCD(boolean isSendToLCD) {
/* 552 */     this.isSendToLCD = isSendToLCD;
/*     */   }
/*     */ 
/*     */   public boolean isSendToLCD() {
/* 556 */     return this.isSendToLCD;
/*     */   }
/*     */ 
/*     */   public void setSendToTicket(boolean isSendToTicket) {
/* 560 */     this.isSendToTicket = isSendToTicket;
/*     */   }
/*     */ 
/*     */   public boolean isSendToTicket() {
/* 564 */     return this.isSendToTicket;
/*     */   }
/*     */ 
/*     */   public void setCounter_lcd(int counter_lcd) {
/* 568 */     this.counter_lcd = counter_lcd;
/*     */   }
/*     */ 
/*     */   public int getCounter_lcd() {
/* 572 */     return this.counter_lcd;
/*     */   }
/*     */ 
/*     */   public String getServiceKode(int idxService)
/*     */   {
/*     */     try
/*     */     {
/* 579 */       return this.arrAntrianKode[idxService];
/*     */     }
/*     */     catch (Exception ex) {
/*     */     }
/* 583 */     return "";
/*     */   }
/*     */ 
/*     */   public String getDisplayFormat(int idx)
/*     */   {
/* 589 */     DecimalFormat dec = new DecimalFormat(this.format);
/*     */     try
/*     */     {
/* 592 */       return this.arrAntrianKode[idx] + dec.format(0L);
/*     */     }
/*     */     catch (Exception ex) {
/*     */     }
/* 596 */     return dec.format(0L);
/*     */   }
/*     */ 
/*     */   public void setPanel_request(String panel_request)
/*     */   {
/* 601 */     this.panel_request = panel_request;
/*     */   }
/*     */ 
/*     */   public String getPanel_request() {
/* 605 */     return this.panel_request;
/*     */   }
/*     */ 
/*     */   public void setPrinterCommand(String printerCommand) {
/* 609 */     this.printerCommand = printerCommand;
/*     */   }
/*     */ 
/*     */   public String getPrinterCommand() {
/* 613 */     return this.printerCommand;
/*     */   }
/*     */ 
/*     */   public String getKeyPanel(int idx)
/*     */   {
/*     */     try
/*     */     {
/* 620 */       return this.arrKeyPanel[idx];
/*     */     }
/*     */     catch (Exception ex) {
/*     */     }
/* 624 */     return null;
/*     */   }
/*     */ }

/* Location:           F:\16 2\SQ.jar
 * Qualified Name:     com.engine.DisplayTools
 * JD-Core Version:    0.6.0
 */